{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "0bda84e3-ba02-49eb-aa54-6e51912c4812",
   "metadata": {},
   "source": [
    "# \"这是我的第二次作业\"\n",
    "1.改变盘符 C:, D:, E:, F:….,\n",
    " D:<回车>\n",
    " (base)D:\\>\n",
    "\n",
    "2.C:\n",
    "\n",
    "3.cd<回车> - 检查当前的目录 \n",
    "\n",
    "4.cd<sp>文件夹的名字\n",
    " change directory\n",
    "d:\n",
    "cd \\work\n",
    "\n",
    "5.make directory\n",
    "md<sp>wangfeng\n",
    "D:\\> md d:\\work\\wangfeng\\1\n",
    "cd d:\\work\\wangfeng\\1\n",
    "\n",
    "6.remove directory\n",
    "rd<sp>wangfeng\n",
    "\n",
    "7. echo<sp>“I love you” > 1.txt\n",
    "\n",
    "8. dir – 列出所有的文件<br/>* 表示所有的组合d\n",
    "\n",
    "9. type<sp>文件名.扩展名\n",
    "\n",
    "10.copy<sp> <源文件名> <目标文件名>\n",
    "copy 1.txt 2.txt\n",
    "绝对路径\n",
    "copy d:\\work\\4.dat d:\\work\\wangfeng\\1\\5.dat\n",
    "\n",
    "相对相径\n",
    "copy 4.dat .\\wangfeng\\1\\5.dat\n",
    "\n",
    " 11 del (DELETE)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6058460f-7bbd-44c3-9e66-5eb13ce13dbb",
   "metadata": {},
   "source": [
    "# \"常用git命令\"\n",
    "git states\n",
    "\n",
    "git add <文件名>\n",
    "\n",
    "git commit -m\"laj\"\n",
    "\n",
    "git push"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6c7bbde3-6ed7-4b08-93c1-81af1014d174",
   "metadata": {},
   "source": [
    "# \"python的变量命名的规则\"\n",
    "仅允许使用字母（大小写）、数字和下划线\n",
    "\n",
    "禁止以数字开头\n",
    "\n",
    "命名唯一性‌‌‌‌"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "bf3c5409-0453-41cb-97a9-a663f7c23b94",
   "metadata": {},
   "source": [
    "# \"变量类型\"\n",
    "数字、字符串、集合"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "42b9c48d-8187-4eb6-9aba-0d755a13f204",
   "metadata": {},
   "source": [
    "# \"常见的运算符\"\n",
    "=\n",
    "+=\n",
    "-="
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "d4fe0a2c-d56e-4c3a-abd6-5c39ff215b6f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "请输入温度值和单位（如25℃或77℉）： 15℃\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "15.00℃转化为华氏度是59.00℉\n"
     ]
    }
   ],
   "source": [
    "# \"摄氏度与华氏度转换程序\"\n",
    "temp_input = input(\"请输入温度值和单位（如25℃或77℉）：\")\n",
    "value = eval(temp_input[:-1])\n",
    "unit = temp_input[-1].upper()\n",
    "\n",
    "if unit == '℃':\n",
    "    fahrenheit = value * 9/5 + 32\n",
    "    print(f\"{value:.2f}℃转化为华氏度是{fahrenheit:.2f}℉\")\n",
    "elif unit == '℉':\n",
    "    celsius = (value - 32) * 5/9\n",
    "    print(f\"{value:.2f}℉转换为摄氏度是{celsius:.2f}℃\")\n",
    "else:\n",
    "    print(\"无效单位，请输入℃或℉\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5c1b2b8d-48c4-400b-89be-6696c3ca423c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python [conda env:base] *",
   "language": "python",
   "name": "conda-base-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
